-- GENERATED SPELL FOR [Northspring Slayer] --


function spell0_5364(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5364', 0, 1)
end

function spell1_5364(pUnit, Event) --@Flow of the Northspring,Heal--
pUnit:FullCastSpellOnTarget(11014,pUnit)
pUnit:RegisterEvent('Sorts_5364', 15000, 1)
end

function Sorts_5364(pUnit, Event)
local choix_sorts_5364 = math.random(0, 1)
if choix_sorts_5364 == 0 then
pUnit:RegisterEvent('spell0_5364', 1, 1)
end
if choix_sorts_5364 == 1 then
pUnit:RegisterEvent('spell1_5364', 1, 1)
end
end

function mob5364_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5364', math.random(1500, 3000), 1)
end

function mob5364_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5364_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5364_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5364, 1, 'mob5364_Action')
RegisterUnitEvent(5364, 2, 'mob5364_Leave')
RegisterUnitEvent(5364, 3, 'mob5364_Kill')
RegisterUnitEvent(5364, 4, 'mob5364_Die')
